#include "..\include\system.h"

dword API LoadLibrary(char * szLib)
{
  __asm {
    mov eax,0
    lea ebx,szLib
    int 0x40
  }
}

dword API GetProcAddress(dword dwLib, char * szFunc)
{
  __asm {
    mov eax,1
    lea ebx,dwLib
    int 0x40
  }
}

dword API CreateProcess(char * szFile)
{
  __asm {
    mov eax,2
    lea ebx,szFile
    int 0x40
  }
}

void API TerminateProcess(dword dwPid)
{
  __asm {
    mov eax,3
    lea ebx,dwPid
    int 0x40
  }
}

void API ExitProcess(dword dwExitCode)
{
  __asm {
    mov eax,4
    lea ebx,dwExitCode
    int 0x40
  }
}


bool API DllMain(dword hModule, dword reason_for_call, dword lpReserved)
{
   return 0;
}
